﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Text;
using System.Windows.Forms;

namespace SmartControls
{
    public partial class Separator : Control
    {
        public Separator()
        {
        }

        protected override void OnResize(EventArgs e)
        {
            Height = 1;
            base.OnResize(e);
        }

        protected override void OnPaint(PaintEventArgs pe)
        {
            pe.Graphics.DrawLine(new Pen(ForeColor), 0, 0, Width, 0);

            // Calling the base class OnPaint
            base.OnPaint(pe);
        }
    }
}
